<h1>Mon blog</h1>

<% for post in @posts %>
  <p><%= link_to (h post.title), post %><br />
		<%= h post.created_at %>
    | <%= link_to 'Edit', edit_post_path(post) %>
    | <%= link_to 'Destroy', post, :confirm => 'Are you sure?', :method => :delete %>
<% end %>

<p><%= link_to 'New post', new_post_path %></p>
